<template>
  <el-container>
    <el-header style="height: 50px">
      <div class="common-header-left">
        <div class="common-header-logo">
          <img :alt="configStore.siteTitle" src="/img/logo.png" />
          <label>{{ configStore.siteTitle }}</label>
        </div>
        <div class="common-header-title">注册新账号</div>
      </div>
      <div class="common-header-right">
        <router-link to="/login">返回登录</router-link>
      </div>
    </el-header>
    <el-main>
      <div class="common-container">
        <h2 class="common-title">注册新账号</h2>
        <div class="common-main el-card">
          <slot></slot>
        </div>
      </div>
    </el-main>
  </el-container>
</template>

<script setup>
import { useConfigStore } from "@/store/modules/config";
const configStore = useConfigStore();
</script>

<style scoped lang="scss">
.el-header {
  background: #fff;
  border-bottom: 1px solid var(--el-border-color-light);
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
